﻿using EkStudio.com.bean.xml.reflection;
using EkStudio.com.bean.xml.RootInterface;
using EkStudio.com.bean.xml.Unit;

namespace EkStudio.com.bean.xml.WorkFlow.Node
{
    /// <summary>
    /// 审批人员相关配置
    /// </summary>
    public class WflowNodeItemAExecute : BillObjectInterface
    {
        private bool editable = false;//可编辑类型,是允许审批人修改当前记录
        private string model = WflowUtility.NODE_COMMENT_MODEL_AND;
        private WflowExpressionElement performer = null;
        private bool email = false;//邮件通知

        [Xml]
        public bool Editable
        {
            get { return editable; }
            set { editable = value; }
        }
        [Xml]
        public string Model
        {
            get { return model; }
            set { model = value; }
        }
        [Xml]
        public WflowExpressionElement Performer
        {
            get { return performer; }
            set { performer = value; }
        }
        [XmlElement]
        public bool Email
        {
            get { return email; }
            set { email = value; }
        }


        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }

            set
            {
                
            }
        }

        public object Clone()
        {
            WflowNodeItemAExecute clone = new WflowNodeItemAExecute();
            clone.Editable = editable;
            clone.Model = model;
            if(performer!=null)
                clone.Performer = performer.Clone() as WflowExpressionElement;
            clone.Email = email;
            return clone;
        }
    }
}
